﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DosTexPrj.Core.Models
{
    [DataContract]
    public class Order : EntityBaseWithIntIDType
    {
        [DataMember]
        public virtual DateTime OrderDate { get; set; }

        [DataMember]
        public virtual DateTime DeliveryDate { get; set; }

        [DataMember]
        public virtual string Freight { get; set; }

        [DataMember]
        public virtual bool IsDeliveredBefore { get; set; }

        [DataMember]
        public virtual int NumberOfDateExtensionDelivery { get; set; }

        [DataMember]
        public virtual Customer Customer { get; set; }

        [DataMember]
        public virtual OrderStatus OrderStatus { get; set; }

        [DataMember]
        public virtual DeliveryMethod DeliveryMethod { get; set; }

        [DataMember]
        public virtual PaymentMethod PaymentMethod { get; set; }

        [DataMember]
        public virtual bool IsDeleted { get; set; }

        [DataMember]
        public virtual IList<OrderDetail> OrderDetails { get; set; }

        public Order()
        {
        }
    }
}